package com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.Model;

import java.util.ArrayList;
import java.util.List;

/**
 * 杭州惟君医疗科技有限公司11
 * Created by 20433 on 2018/5/22
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public abstract class Product {
    protected List<String> parts = new ArrayList<String>(); //添加部件

    public void add(String part) {
        parts.add(part);
    } //显示产品信息

    public void show() {
        System.out.print("产品部件信息：");
        for (String part : parts) {
            System.out.print(part + "\t");
        }
    }
}
